import request from '@/utils/request'
import { param } from '../../utils'

// bom: transfer: list 调拨管理列表
export function listStockAllot(query) {
  return request({
    url: '/bom/material/transfer/page',
    method: 'get',
    params: query
  })
}
// 添加调拨信息  /bom/material/transfer/add
export function AddlistStockAllot(query) {
  return request({
    url: '/bom/material/transfer/add',
    method: 'post',
    params: query
  })
}
// 获取店铺树形
export function FindShopBom() {
  return request({
    url: '/system/dept/deptTree',
    method: "get",
    params: { mode: 2 }
  })
}
// dept / kingdee / { deptCode }
// 获取工作组
export function Findkingdee(query) {
  return request({
    url: '/system/dept/kingdee/' + query,
    method: "get",
  })
}
// /bom/material/transfer/add
// 添加调拨
export function addtransfer(query) {
  return request({
    url: '/bom/material/transfer/add',
    method: "post",
    data: query
  })
}
// 获取调拨信息
export function materialtransfer(query) {
  return request({
    url: `/bom/material/transfer/getInfo`,
    method: "get",
    params: query
  })
}
// 修改调拨
export function updatetransfer(query) {
  return request({
    url: `/bom/material/transfer/update`,
    method: "put",
    data: query
  })
}
// /bom/stap / outchange / page 用料查询
export function outchangepage(query) {
  return request({
    url: `/bom/stap/outchange/page`,
    method: "get",
    params: query
  })
}
///pandian/panDianAnalysis/getEndInventory
// 期末库存查询
export function getEndInventory(query) {
  return request({
    url: `/pandian/panDianAnalysis/getEndInventory`,
    method: "get",
    params: query
  })
}
//获取下拉框内数据
export function getDropDown(query) {
  return request({
    url: `/pandian/panDianAnalysis/getDropDown/` + query,
    method: "get",
  })
}
// 损益 下拉框内数据 获取盘点Code

export function getPanDianCode(query) {
  return request({
    url: `/pandian/panDianAnalysis/getPanDianCode`,
    method: "get",
    params: query
  })
}
//物料选中
